<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<link rel="stylesheet" href="./css/xadmin.css">
<head>
    <meta charset="UTF-8">
    <title>查询订单输出页</title>
</head>
<body>
<div class="layui-card">
    <div class="layui-card-header">成功查询订单</div>
    <div class="layui-card-body">
        <ul>
            <li>客户名字</li>
            <li th:text="${orders[0].customerName}"></li>
            <li>运输方式</li>
            <li th:text="${orders[0].transport}"></li>
            <li>订单创建时间</li>
            <li th:text="${orders[0].date}"></li>
            <li>订单编号</li>
            <li th:text="${orders[0].orderId}"></li>
        </ul>
        <div class="layui-footer">
            <div class="layui-inline">当前订单总额</div>
            <div th:text="${orderPrice}" class="layui-inline"></div>
        </div>
    </div>
</div>
<table border="1" class="layui-table">
    <tr class="layui-table-header">
        <td>商品名字</td>
        <td>商品规格</td>
        <td>商品型号</td>
        <td>商品厂家</td>
        <td>商品数量</td>
        <td>商品价格</td>
        <td>本商品金额</td>
        <td>商品计量单位</td>
        <td>备注</td>
    </tr>
    <tr class="layui-table-body" th:each="order:${orders}">
        <td th:text="${order.goodsname}"></td>
        <td th:text="${order.goodsModel}"></td>
        <td th:text="${order.goodsSpecs}"></td>
        <td th:text="${order.goodsFactory}"></td>
        <td th:text="${order.goodsNum}"></td>
        <td th:text="${order.goodsPrice}"></td>
        <td th:text="${order.goodsNum*order.goodsPrice}"></td>
        <td th:text="${order.goodsunit}"></td>
        <td th:text="${order.remarks}"></td>
    </tr>
</table>
</body>
</html>